package cn.xuexiluxian.open.framework.configuration;

import cn.hutool.extra.mail.MailAccount;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MailConfig {

    @Bean
    public MailAccount mailTemplate(){
        MailAccount account = new MailAccount();
        account.setHost("smtp.exmail.qq.com");
        account.setPort(465);
        account.setAuth(true);
        account.setFrom("小鹿线<service@xuexiluxian.cn>");
        account.setPass("ZxjdtzysmvgoEMPF");
        account.setSslEnable(true);
        return account;
    }

}
